home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / devel / libx11 / include / x11 / xaw / commandp.h < prev    next >
C/C++ Source or Header  |  1999-01-01  |  3KB  |  117 lines

  1. /*
  2. * $XConsortium: CommandP.h,v 1.30 90/12/01 13:00:10 rws Exp $
  3. */
  4.  
  5.  
  6. /***********************************************************
  7. Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
  8. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  9.  
  10.                         All Rights Reserved
  11.  
  12. Permission to use, copy, modify, and distribute this software and its 
  13. documentation for any purpose and without fee is hereby granted, 
  14. provided that the above copyright notice appear in all copies and that
  15. both that copyright notice and this permission notice appear in 
  16. supporting documentation, and that the names of Digital or MIT not be
  17. used in advertising or publicity pertaining to distribution of the
  18. software without specific, written prior permission.  
  19.  
  20. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  21. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  22. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  23. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  24. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  25. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  26. SOFTWARE.
  27.  
  28. ******************************************************************/
  29.  
  30. /* 
  31.  * CommandP.h - Private definitions for Command widget
  32.  * 
  33.  */
  34.  
  35. #ifndef _XawCommandP_h
  36. #define _XawCommandP_h
  37.  
  38. #include <X11/Xaw/Command.h>
  39. #include <X11/Xaw/LabelP.h>
  40.  
  41. /***********************************************************************
  42.  *
  43.  * Command Widget Private Data
  44.  *
  45.  ***********************************************************************/
  46.  
  47. typedef enum {
  48.   HighlightNone,        /* Do not highlight. */
  49.   HighlightWhenUnset,        /* Highlight only when unset, this is
  50.                    to preserve current command widget 
  51.                    functionality. */
  52.   HighlightAlways        /* Always highlight, lets the toggle widget
  53.                    and other subclasses do the right thing. */
  54. } XtCommandHighlight;
  55.  
  56. /************************************
  57.  *
  58.  *  Class structure
  59.  *
  60.  ***********************************/
  61.  
  62.  
  63.    /* New fields for the Command widget class record */
  64. typedef struct _CommandClass 
  65.   {
  66.     int makes_compiler_happy;  /* not used */
  67.   } CommandClassPart;
  68.  
  69.    /* Full class record declaration */
  70. typedef struct _CommandClassRec {
  71.     CoreClassPart    core_class;
  72.     SimpleClassPart    simple_class;
  73.     LabelClassPart    label_class;
  74.     CommandClassPart    command_class;
  75. } CommandClassRec;
  76.  
  77. extern CommandClassRec commandClassRec;
  78.  
  79. /***************************************
  80.  *
  81.  *  Instance (widget) structure 
  82.  *
  83.  **************************************/
  84.  
  85.     /* New fields for the Command widget record */
  86. typedef struct {
  87.     /* resources */
  88.     Dimension   highlight_thickness;
  89.     XtCallbackList callbacks;
  90.  
  91.     /* private state */
  92.     Pixmap          gray_pixmap;
  93.     GC              normal_GC;
  94.     GC              inverse_GC;
  95.     Boolean         set;
  96.     XtCommandHighlight    highlighted;
  97.     /* more resources */
  98.     int            shape_style;    
  99.     Dimension        corner_round;
  100. } CommandPart;
  101.  
  102.  
  103. /*    XtEventsPtr eventTable;*/
  104.  
  105.  
  106.    /* Full widget declaration */
  107. typedef struct _CommandRec {
  108.     CorePart         core;
  109.     SimplePart         simple;
  110.     LabelPart         label;
  111.     CommandPart      command;
  112. } CommandRec;
  113.  
  114. #endif /* _XawCommandP_h */
  115.  
  116.  
  117.